import request from '@/utils/request';

export function selectAll() {
    return request({
        url: `/MaintenanceRecord/maoduan/selectAll`,
        method: 'get'
    });
}

export function addMaoDuan(data) {
    return request({
        url: `/MaintenanceRecord/maoduan/add`,
        method: 'post',
        data: data
    });
}

export function updateMaoDuan(mdid, data) {
    return request({
        url: `/MaintenanceRecord/maoduan/update/${mdid}`,
        method: 'put',
        data: data
    });
}

export function deleteMaoDuan(mdid) {
    return request({
        url: `/MaintenanceRecord/maoduan/delete/${mdid}`,
        method: 'delete'
    });
}

export function downloadMaoDuan() {
    return request({
        url: `/MaintenanceRecord/maoduan/download`,
        method: 'GET',
        responseType: 'blob'
    });
}